package cn.itcast.usermanage.service;

import java.util.List;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserService {

	/**
	 * 分页获取用户信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	EasyUIResult queryEasyUIResult(Integer pageNum, Integer pageSize);
	/**
	 * 测试事务
	 * @param user1
	 * @param user2
	 */
	public void addUsers(User user1, User user2) throws Exception;
	/**
	 * 新增用户信息
	 * @param user
	 * @return
	 * @throws Exception
	 */
	boolean addUser(User user) throws Exception;
	/**
	 * 删除用户信息
	 * @param ids
	 * @return
	 */
	boolean deleteUser(List<Object> ids);
	public User queryUserById(Long id);
	public void saveUser(User user);
	public void updateUser(User user);
}
